package com.demo.base.duty.filter;

import com.demo.base.duty.AbstractHandler;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author : YU.TAN
 * @date : 2021/10/28 14:09
 */
@Component
@Order(3)
@Slf4j
public class CheckBlackFilterObject extends AbstractHandler {
    @Override
    public boolean doFilter(Request request, Response response) {
        System.out.println("校验黑名单");
        log.info("校验黑名单！校验完成");
        return true;
    }
}
